home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 119
/
MOBICLIC 119.ISO
/
pc
/
DATA
/
DCV119
/
DCV119_00
/
DCV119_00.swf
/
scripts
/
frame_29
/
DoAction.as
Wrap
Text File
|
2009-11-16
|
3KB
|
100 lines
stop();
dureeDiapo = 4000;
BT_DIAPO._visible = false;
texte_LMXX.text = "";
showDiapo = function(No, L_ordre)
{
trace("index de photo diapo = " + String(No + 1));
var _loc3_ = gimme2digits(Math.ceil(L_ordre[No] / 5));
var _loc1_ = L_ordre[No] - Math.floor(L_ordre[No] / 5) * 5;
if(_loc1_ == 0)
{
_loc1_ = 5;
}
var _loc4_ = gimme2digits(_loc1_);
trace("suffixe1 " + _loc3_);
trace("suffixe2 " + _loc4_);
DIAPORAMA.gotoAndStop("PH_" + _loc3_ + "_" + _loc4_);
texte_LMXX.text = String(L_LM_animaux[L_ordre[No] - 1]);
};
pauseAndShow = function()
{
showDiapo(NoDiapo2show,L_ordreFotos);
if(NoDiapo2show < 14)
{
NoDiapo2show++;
}
else
{
clearInterval(ProcessusDiapo);
BT_DIAPO._visible = true;
}
};
trace("LocalLastCatched en entrée de label diapo = " + LocalLastCatched);
trace("lancement diaporama");
LocalLastCatched = 0;
var L = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var Ltampon = [];
L_ordreFotos = [];
var _loc0_ = null;
if((_loc0_ = NoZoneSelected) !== 0)
{
var Noreel_foto = NoPhoto2Show + (NoZoneSelected - 1) * 5;
Ltampon.push(Noreel_foto);
L.splice(Noreel_foto - 1,1);
L_ordreFotos = Ltampon.concat(randomiseList(L));
}
else
{
L_ordreFotos = randomiseList(L);
}
trace("L_ordreFotos = " + L_ordreFotos);
showDiapo(0,L_ordreFotos);
NoDiapo2show = 1;
trace("dureeDiapo = " + dureeDiapo);
var ProcessusDiapo = setInterval(pauseAndShow,dureeDiapo);
trace("ProcessusDiapo = " + ProcessusDiapo);
BT_FERMER.onRollOver = function()
{
this.useHandCursor = true;
this.gotoAndStop("E2");
bruit({nomBruit:"FERMER"});
};
BT_FERMER.onPress = function()
{
this.gotoAndStop("E1");
killbruit({nomBruit:"FERMER"});
NoPhoto2Show = 0;
LocalLastCatched = 0;
clearInterval(ProcessusDiapo);
_root.gotoAndStop("ATTENTE");
};
BT_FERMER.onRollOut = function()
{
this.gotoAndStop("E1");
killbruit({nomBruit:"FERMER"});
};
BT_DIAPO.onRollOver = function()
{
this.useHandCursor = true;
this.gotoAndStop("E2");
bruit({nomBruit:"DIAPO"});
};
BT_DIAPO.onPress = function()
{
this.gotoAndStop("E1");
this._visible = false;
killbruit({nomBruit:"DIAPO"});
clearInterval(ProcessusDiapo);
showDiapo(0,L_ordreFotos);
NoDiapo2show = 1;
trace("dureeDiapo = " + dureeDiapo);
var ProcessusDiapo = setInterval(pauseAndShow,dureeDiapo);
trace("ProcessusDiapo = " + ProcessusDiapo);
};
BT_DIAPO.onRollOut = function()
{
this.gotoAndStop("E1");
killbruit({nomBruit:"DIAPO"});
};